﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 渐变
{
    public partial class sysForm : Form
    {
        public sysForm()
        {
            InitializeComponent();
        }

        private void sysForm_Load(object sender, EventArgs e)
        {
            this.Dock = DockStyle.Fill;
            Computer computer = new Computer();
            uiTextBox1.Text = computer.ComputerName;
            uiTextBox2.Text = computer.CpuID;
            uiTextBox3.Text = computer.DiskID;
            uiTextBox4.Text = computer.IpAddress;
            uiTextBox5.Text = computer.LoginUserName;
            uiTextBox6.Text = computer.MacAddress;
            uiTextBox7.Text = computer.SystemType;
            uiTextBox8.Text = computer.TotalPhysicalMemory;
        }
    }
}
